package java_book;

public class KyungYeon_jv_3_4 {

	public static void main(String[] args) {
		
		boolean x = true, y = true, z = false;
		
		System.out.println("***** result *****");
		System.out.println("boolean x = true, y = true, z = false");
		
		System.out.println("--- logical AND ---");
		System.out.println("x&&y -> "+(x&&y));	// true
		System.out.println("y&&z -> "+(y&&z));	// false
		
		System.out.println("--- logical OR ---");
		System.out.println("x||y -> "+(x||y));	// true
		System.out.println("y||z -> "+(y||z));	// true
		
		System.out.println("--- logical NOT ---");
		System.out.println("!x -> "+(!x));	// false
		System.out.println("!y -> "+(!y));	// false
		System.out.println("!z -> "+(!z));	// true
		
	}
}
